import { useLocation } from "umi";
import { Space, Table } from "antd";

const Producer = () => {
	const location = useLocation();

	const commodity = location.state?.commodity || {};

	return (
		<Space direction="vertical" style={{ padding: 10, width: "100%" }} size={10}>
			<Table title={() => <div style={{ paddingBottom: 5 }}>产地列表</div>} size="small" dataSource={[]} rowKey="aiUuid" pagination={false}>
				<Table.Column title="序号" align="center" width={50} render={(_, r, i) => i + 1} />
				<Table.Column title="商品名称" dataIndex="aiName" align="left" />
				<Table.Column title="生产地区" dataIndex="itName" align="left" />
				<Table.Column title="详细地址" dataIndex="itName" align="left" />
			</Table>
		</Space>
	);
};

export default Producer;
